package demo3;

import java.util.Queue;
import java.util.Stack;

public class Test {
    private boolean isOperations(String s) {
        if(s.equals("+") || s.equals("-") || s.equals("*") || s.equals("/"))
        {
            return true;
        }
        return false;
    }

    public static void main(String[] args) {
        Stack<String> myStack = new Stack();
        myStack.push("1");
        myStack.push("1");
        myStack.push("3");
        int x = Integer.parseInt(myStack.pop());
        //int y = Integer.valueOf(x);
        String[] s = {"s", "aks", "aa"};
        System.out.println(s.length);
        char a = 's';
        char b = 's';
        System.out.println(a == b);
    }

    public static void main1(String[] args) {
        MyStack<Integer> myStack = new MyStack();
        myStack.push(1);
        myStack.push(2);
        myStack.push(3);


        //System.out.println(myStack.getUsedSize());

        int x = myStack.pop();
        System.out.println(x);

        x = myStack.peek();
        System.out.println(x);

        x = myStack.pop();
        System.out.println(x);

        System.out.println(myStack.empty());
        myStack.pop();
        System.out.println(myStack.empty());
    }
}
